package com.zz.parkingsystem.mapper;

import com.zz.parkingsystem.dto.AdminDTO;
import com.zz.parkingsystem.dto.AdminLoginDTO;
import com.zz.parkingsystem.entity.Admin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author zz
* @description 针对表【t_admin(管理员表)】的数据库操作Mapper
* @createDate 2022-08-29 13:17:21
* @Entity com.zz.parkingsystem.entity.Admin
*/
@Mapper
public interface AdminMapper {


    /**
     * 查询所有管理员信息
     * @param
     * @return  List<Admin>
     */
    List<Admin> queryAllAdmin(AdminDTO adminDTO);

    /**
     * 根据电话号查询admin实体
     * @param String tel
     * @return Admin
     */
    Admin selAdminByTel(String tel);
    int deleteByPrimaryKey(Long id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    /**
     * 管理员登录查询
     * @param AdminLoginDTO admin
     * @return
     */
    Admin adminLogin(AdminLoginDTO admin);
}
